﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class Email:Entity
    {
        [MaxLength(50)]
        [Required]
        [Display(Name="姓名")]
        public string Name { get; set; }

        [MaxLength(50)]
        [Required]
        [Display(Name = "邮件")]
        public string EmailNum { get; set; }

        [MaxLength(50)]
        public string Ip { get; set; }

        [MaxLength(50)]
        public string Phone { get; set; }

        [MaxLength(50)]
        [Required]
        [Display(Name = "主题")]
        public string Subject { get; set; }

        [MaxLength(2000)]
        [Required]
        [Display(Name = "内容")]
        public string Body { get; set; }
    }
}
